package com.aef.utils;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

/**
 * @author Administrator
 *
 */
public class TestUtils {

	public static void main(String[] args) {
		String a="{\"xml\":{\"re_openid\":[\"oZr2WwVrs0MqAGxPIzk1RNtuXsqE\"],\"total_amount\":[\"150\"],\"err_code\":[\"SIGN_ERROR\"],\"return_msg\":[\"签名错误\"],\"result_code\":[\"FAIL\"],\"err_code_des\":[\"签名错误\"],\"mch_id\":[\"1486950392\"],\"return_code\":[\"SUCCESS\"],\"wxappid\":[\"wxdb7ae392b3e0077e\"],\"mch_billno\":[\"1486950392201717221486950392\"]}}";
		JSONObject json=JSONObject.parseObject(a);
		JSONObject json1=(JSONObject) json.get("xml");
		JSONArray json2=(JSONArray) json1.get("err_code");
		System.out.println(json2.toString().replaceAll("\\[\"", "").replaceAll("\"\\]", ""));
	}
	
}
